package com.netease.liang.ch02.xmlconfig;



import com.netease.liang.ch02.common.CompactDisc;

import java.util.List;

public class BlankDisc implements CompactDisc {
    private String title;
    private String artist;
    private List<String> tracks;

    public BlankDisc(String title, String artist, List<String> tracks) {
        this.title = title;
        this.artist = artist;
        this.tracks = tracks;
    }

    @Override
    public void play() {
        System.out.println("播放" + artist + "的" + title);
        tracks.forEach(System.out::println);
    }
}
